package cn.ljy.authority.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 批量接收角色,处理可用性
 */
@ApiModel(value="角色可用性批量处理表单")
@Data
public class RoleEnabledParam {
    @ApiModelProperty(value="角色id集合",required = true,example = "[1,2,3]")
    @NotEmpty(message = "ids不能为空")
    private Integer[] ids; // 角色id集合
    @ApiModelProperty(value="可用性",required = true)
    @NotNull(message = "enabled不能为空")
    private Boolean enabled; // 可用属性
}
